package com.bytecollege.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bytecollege.mapper.NoticeMapper;
import com.bytecollege.model.Notice;
import com.bytecollege.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: NoticeMapper
 * @Description: 
 * @Author: Sun
 * @Date: 2022/10/18 21:03
 */
@Service
public class NoticeServiceImpl  extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {
    @Autowired
    NoticeMapper noticeMapper;
    public List<Notice> getAll(){
        return noticeMapper.selectList(null);
    }
    public Notice getById(int id){
        return noticeMapper.selectById(id);
    }

}